package com.yhgarden.bbs.service.api.system;

import com.yhgarden.bbs.entity.system.Menu;
import com.yhgarden.bbs.entity.system.Role;
import com.yhgarden.bbs.entity.vo.menu.RoleIdMenuIdsVo;
import com.yhgarden.bbs.model.response.BaseResponse;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface MenuService {

    BaseResponse createOrUpdate(HttpSession session, Menu menu) throws Exception;

    BaseResponse handleRoleMenu(RoleIdMenuIdsVo roleIdMenuIdsVo) throws Exception;

    BaseResponse getById(String id);

    BaseResponse getByRoleId(String roleId);

    BaseResponse getByIdMoreDetail(String id);

    BaseResponse getByPid(String pid);

    BaseResponse query(Menu menu);

    BaseResponse queryForList(Menu menu);

    BaseResponse queryMoreDetail(Menu menu);

    BaseResponse delete(String id);

    List<Menu> getByRolesAndUserId(List<Role> roleList, String userId);
}
